<?php if (isset($topicList) && count($topicList) > 0) {
    foreach ($topicList as $topicMsg) {
        $topicImg = make_img_name::make_img_mini_name($topicMsg->Picture);
        ?>
        <li class="am-list-item" style="padding-left: 25px">
            <a style="display: inline-block;" data-forward="controller=topic_show&topic_id=<?= $topicMsg->Id ?>"
               onclick="act_content(this)">
                <div class="am-list-thumb"
                     style="height: 55px; width: 55px;display: inline-block; vertical-align: top;">
                    <img src="<?= $CfgPara->httproot ?>/topic_pic/<?= $topicImg ?>" class="am-circle" height="55"
                         width="55"/>
                </div>
                <div style="width: 20px; display: inline-block;"></div>
                <div class="am-list-main" style="display: inline-block; vertical-align: top; padding-top: 2px;">
                    <div class="am-list-item-hd">
                        <b class="web-tittle-color"><?= $topicMsg->Name ?></b>
                    </div>
                    <div class="am-text-xs web-gray-color" style="padding-top: 10px;">
                        <?= substr($topicMsg->ReleaseDt, 0, 16) ?>
                    </div>
                </div>
            </a>
            <div class="am-fr web-gray-color" style="padding-right: 20px; padding-top: 15px; text-align: right;">
    	<span class="am-text-xs">
    	<?php if ($topicMsg->State == 1) { ?>
            <span class="web-main-color"><?= $topicMsg->WorksCount ?></span><span>&nbsp;篇作品&nbsp;&bull;&nbsp;</span>
            <span id="topic_up_count_<?= $topicMsg->Id ?>"><?= $topicMsg->UpCount ?></span>人关注
        <?php
            if (isset($InputData["list_type"]) &&
                $InputData["list_type"] == topic_m::ListMine &&
                $_SESSION["user_level"] >= 90
            ) { //如果为我的作品且是管理员 增加待审核作品数
                ?>
                &nbsp;&bull;&nbsp;<span style="color: orange;"><?= $topicMsg->WaitCheckCount ?></span>&nbsp;待审核
            <?php }
        } else { ?>
            <i class="am-icon am-icon-edit am-icon-fw"></i>草稿
        <?php } ?>
        </span>
                <br/>
                <?php
                if (isset($InputData["list_type"]) &&
                    isset($InputData['work_id']) &&
                    $InputData["list_type"] == topic_m::ListJoinSele
                ) //投稿选择要加入的专题
                {
                    if (!isset($topicMsg->WorkId))
                        echo '<a class="web-btn-showlist app-btn-follow" onclick="work_for_topic(this)" data-topic-msg="' . $topicMsg->Id . ',' . $InputData['work_id'] . '">加专题</a>';
                    else
                        echo '<a class="web-btn-showlist app-btn-followed">已加入</a>';
                } elseif (isset($InputData["list_type"]) &&
                    $InputData["list_type"] == topic_m::ListMine &&
                    $_SESSION["user_level"] >= 90
                ) //我的专题 如果为管理员 则可以进入专题编辑与审核
                {
                    echo '<a class="web-btn-showlist app-btn-follow-red" onclick="topic_dele(' . $topicMsg->Id . ',this)" >&nbsp;删除&nbsp;</a>&nbsp;&nbsp;';
                    echo '<a class="web-btn-showlist app-btn-follow" onclick="top_left_bar_change(2); menu_l_close(); act_content(this)" data-forward="controller=topic_edit&topic_edit=1&topic_id=' . $topicMsg->Id . '">&nbsp;编辑&nbsp;</a>&nbsp;&nbsp;';
                    echo '<a class="web-btn-showlist app-btn-follow" onclick="act_content(this)" data-forward="controller=works_list&list_type=5&topic_id=' . $topicMsg->Id . '">' . '&nbsp;审核&nbsp;' . '</a>';
                } else {
                    echo '<i class="am-icon am-icon-ellipsis-h"></i>&nbsp;';
                }
                ?>
            </div>
        </li>
        <?php
    }
} //if(isset($topicList))结束
else //没有内容
{
    if (!isset($InputData['page_change']) || isset($InputData['search_text']))
        require("{$CfgPara->root}/view/warning_nocontent.app.v.php");
}
?>